From: Keir Fraser Date: Wed, 9 Apr 2008 15:54:44 +0000 (+0100) Subject: libxc: Leave portability of xg_memalign() as in original patch, rather X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14231^2~35 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=3cb6817ad5b7dd6a7a5702d64c8c74184591df05;p=xen.git libxc: Leave portability of xg_memalign() as in original patch, rather than following ioemu/osdep.c. This unbreaks build of readnotes. Signed-off-by: Keir Fraser --- diff --git a/tools/libxc/xg_private.h b/tools/libxc/xg_private.h index 2b863f7b74..563585793a 100644 --- a/tools/libxc/xg_private.h +++ b/tools/libxc/xg_private.h @@ -180,7 +180,7 @@ int pin_table(int xc_handle, unsigned int type, unsigned long mfn, /* Grrr portability */ static inline void *xg_memalign(size_t alignment, size_t size) { -#if defined(_POSIX_C_SOURCE) && !defined(__sun__) +#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 int ret; void *ptr; ret = posix_memalign(&ptr, alignment, size);